package org.dromara.system.domain.bo;

import lombok.*;
import org.dromara.system.domain.SysUserLotteryRecords;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.*;
import org.dromara.system.domain.common.BasePageReqDTO;

import java.math.BigDecimal;

/**
 * 抽奖记录业务对象 sys_user_lottery_records
 *
 * @author Lion Li
 * @date 2025-07-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysUserLotteryRecords.class, reverseConvertGenerate = false)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SysUserLotteryRecordsBo extends BasePageReqDTO {

    /**
     *
     */
    private Long id;

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 消耗积分
     */
    @NotNull(message = "消耗积分不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal points;

    /**
     * 奖励金额
     */
    @NotNull(message = "奖励金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal rewards;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    private String  userName;

}
